<div class="col-sm-12 mt20">

    <div class="panel panel-default">
        <div class="panel-body" ng-keyup="myKeyup($event)">
            <div class="col-sm-2">
                <input type="text" class="form-control" placeholder="标题" ng-model="pageInfo.title">
            </div>
            <div class="col-sm-2">
            </div>
            <div class="col-sm-2">
            </div>
            <div class="col-sm-2">
            </div>
            <div class="col-sm-2">
                <button class="btn btn-success search btn-block" ng-click="create()">创建活动</button>
            </div>
            <div class="col-sm-2">
                <button class="btn btn-info search btn-block" ng-click="loadlist()">立即搜索</button>
            </div>
        </div>

        <div class="panel-body">
            <table class="table table-striped table-bordered dataTable table-condensed tree_table" style="table-layout:fixed">
                <tbody>
                    <tr ng-repeat="activity in activityList">
                        <td>
                            <div class="col-xs-12">
                                <div class="text-right" style="width: 270px; float: left;">
                                    <img src={{activity.img}} alt="活动图片" style="width: 250px; height: 160px;">
                                </div>
                                <!-- 概要 -->
                                <div class="text-left fsize16" style="width: auto; float: left;">
                                    <div class="col-xs-12 text-left mt5">
                                        <strong>
                                            {{activity.title}}
                                        </strong>
                                    </div>
                                    <div class="col-xs-12 text-left mt5">
                                        {{activity.introduction}}
                                    </div>
                                    <div class="col-xs-12 text-left mt5">
                                        <div class="col-xs-2 text-left pl0 pr0">
                                            报名条件：
                                        </div>
                                        <div class="col-xs-8 pl0">
                                            <span ng-bind-html="activity.condition"></span>
                                        </div>
                                    </div>
                                    <div class="col-xs-12 text-left mt5">
                                        <div class="col-xs-2 text-left pl0 pr0">
                                            活动时限：
                                        </div>
                                        <div class="col-xs-8 pl0">
                                            {{activity.start_time}}至{{activity.end_time}}
                                        </div>
                                    </div>
                                    <div class="col-xs-12 text-left mt5 pr0">
                                        <div class="col-xs-4 text-left pl0 pr0">
                                            <strong class="text-danger fsize24">
                                                {{activity.stock}}人
                                            </strong>
                                        </div>
                                        <div class="col-xs-2 pull-right text-center">
                                            <a class="btn btn-block btn-info" ng-click="info(activity)">详情</a>
                                        </div>
                                        <div class="col-xs-2 pull-right text-center">
                                            <a class="btn btn-block btn-warning" ng-click="edit(activity)">修改</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div class="text-right" style="background-color: white; margin-right: 30px">
            <pagination total-items="totalItems" ng-model="currentPage" ng-change="loadlist()" previous-text="上一页" next-text="下一页" first-text="首页"
                last-text="尾页" max-size="5" boundary-links="true" rotate="false" items-per-page="itemsPerPage" class="m-t-none m-b"></pagination>
        </div>

    </div>
</div>
<style>
    .pl0 {
        padding-left: 0px;
    }

    .pr0 {
        padding-right: 0px;
    }

    .fsize15 {
        font-size: 15px;
    }

    .fsize24 {
        font-size: 24px;
    }

    .fsize16 {
        font-size: 16px;
    }

    .mt7 {
        margin-top: 7px;
    }

    .bkgd-orange {
        background-color: orange;
    }

    table.table-bordered tbody th,
    table.table-bordered tbody td {
        border-left-width: 0px;
        border-bottom-width: 1px;
    }
</style>